package com.zp.business.service.template;

import com.zp.business.entity.template.bo.TemplateDetailBo;
import com.zp.business.entity.template.vo.TemplateDetailVo;
import com.zp.common.myBatis.core.page.PageQuery;
import com.zp.common.myBatis.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 模板子表Service接口
 *
 * @author zhang peng
 * @ date 2024-04-09
 */
public interface ITemplateDetailService {

    /**
     * 查询模板子表
     */
    TemplateDetailVo queryById (String detailId);

    /**
     * 查询模板子表列表(分页)
     */
    TableDataInfo<TemplateDetailVo> queryPageList (TemplateDetailBo bo, PageQuery pageQuery);

    /**
     * 查询模板子表列表(不分页)
     */
    List<TemplateDetailVo> queryList (TemplateDetailBo bo);

    /**
     * 修改模板子表
     */
    Boolean insertByBo (TemplateDetailBo bo);

    /**
     * 修改模板子表
     */
    Boolean updateByBo (TemplateDetailBo bo);

    /**
     * 校验并批量删除模板子表信息
     */
    Boolean deleteWithValidByIds (Collection<String> ids, Boolean isValid);
}
